<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Installing the MongoDB PHP Driver on macOS with Homebrew</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mongodb.installation.pecl.html">« Installing the MongoDB PHP Driver with PECL</a></li>
      <li style="float: right;"><a href="mongodb.installation.windows.html">Installing the MongoDB PHP Driver on Windows »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="mongodb.installation.html">安装</a></li>
    <li>Installing the MongoDB PHP Driver on macOS with Homebrew</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="mongodb.installation.homebrew" class="section">
  <h2 class="title">Installing the MongoDB PHP Driver on macOS with Homebrew</h2>

  <p class="para">
   <a href="https://brew.sh/2018/01/19/homebrew-1.5.0/" class="link external">&raquo;&nbsp;Homebrew 1.5.0</a>
   deprecated the <a href="https://github.com/Homebrew/brew" class="link external">&raquo;&nbsp;Homebrew/php tap</a>
   and removed formulae for individual PHP extensions. Going forward, macOS
   users are advised to install the
   <a href="https://formulae.brew.sh/formula/php" class="link external">&raquo;&nbsp;php</a> formula
   and follow the standard
   <a href="mongodb.installation.pecl.html" class="link">PECL installation instructions</a>
   using the <a href="install.pecl.html" class="link">pecl</a> command provided by the
   Homebrew PHP installation.
  </p>
 </div></div></div></body></html>